#pragma once
#include "afxcmn.h"


// CSplitPayDlg dialog
class CGridCtrl;
class CSplitPayDlg : public CDialog
{
	DECLARE_DYNAMIC(CSplitPayDlg)

public:
	CSplitPayDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSplitPayDlg();
	int nDesk;
	int nArea;

// Dialog Data
	enum { IDD = IDD_SPLIT_PAY_DLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	CGridCtrl* m_timeTable;
	CGridCtrl* m_AllTable;
	vector<Order> m_subOrder;
	Order		m_allOrder;
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
public:
	CTabCtrl m_splitTab;
	void addTableTitle();
	void fillTable(const Order& pOrder,const CString& );
	void addAllTableTitle();
	void fillAllTable(const Order& pOrder);
public:
	afx_msg void OnBnClickedAdd();
public:
	afx_msg void OnBnClickedDel();
public:
	afx_msg void OnBnClickedUp();
public:
	afx_msg void OnBnClickedBottom();
public:
	afx_msg void OnTcnSelchangeSplittab(NMHDR *pNMHDR, LRESULT *pResult);
};
